import request from '../request'

export const getCategory = () => {
    return request({
        url: '/category'
    })
}


export const getSubcategory = maitKey => {
    return request({
        url: '/subcategory',
        params: {
            maitKey
        }
    })
}


// export function getCategoryDetail(miniWallkey, type) {
//     return axios({
//         url: '/subcategory/detail',
//         params: {
//             miniWallkey,
//             type
//         }
//     })
// }
